var playerAction = process.argv[process.argv.length - 1]
const game = require('./lib.js')

// game(playerAction)

// 获取进程的标准输入
let count = 0
process.stdin.on('data', e=>{
    const playerAction = e.toString().trim()
    console.log(e);
    const result = game(playerAction)
    console.log(result);
})

